package com.company.service;

import java.util.List;

import com.company.dao.ChanpinfuwuDao;
import com.company.dao.ProjectDao;
import com.company.entity.Chanpinfuwu;
import com.company.entity.Projects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProjectService {
	@Autowired
	ProjectDao projectDao;

	public ProjectDao getProjectDao() {
		return projectDao;
	}

	public void setProjectDao(ProjectDao projectDao) {
		this.projectDao = projectDao;
	}

	public Projects query(int id) {
		return projectDao.query(id);
	}

	public List<Projects> querys() {
		return projectDao.querys();
	}

	public void save(Projects projects) {
		projectDao.save(projects);
	}

	public void update(Projects projects) {
		projectDao.update(projects);
	}

	public void delete(Projects projects) {
		projectDao.delete(projects);
	}
}
